package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tb_supervisor")
public class Supervisor {
    @Id
    @Column(name = "id", updatable = false, nullable = false)
    private String id;

    @Column(name = "consultant_id", nullable = false)
    private String consultantId;

    @Column(name = "supervise_count", nullable = false)
    private String superviseCount;

    @Column(name = "supervise_time", nullable = false)
    private String superviseTime;

    public Supervisor() {
    }

    public Supervisor(String id, String consultantId, String superviseCount, String superviseTime) {
        this.id = id;
        this.consultantId = consultantId;
        this.superviseCount = superviseCount;
        this.superviseTime = superviseTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getConsultantId() {
        return consultantId;
    }

    public void setConsultantId(String consultantId) {
        this.consultantId = consultantId;
    }

    public String getSuperviseCount() {
        return superviseCount;
    }

    public void setSuperviseCount(String superviseCount) {
        this.superviseCount = superviseCount;
    }

    public String getSuperviseTime() {
        return superviseTime;
    }

    public void setSuperviseTime(String superviseTime) {
        this.superviseTime = superviseTime;
    }

    @Override
    public String toString() {
        return "Supervisor{" +
                "id=" + id +
                ", consultantId=" + consultantId +
                ", superviseCount=" + superviseCount +
                ", superviseTime=" + superviseTime +
                '}';
    }
}
